/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class PrintConfigEntity {
    private final boolean printAnswer;
    private final boolean printAnswerArea;
    private final boolean printTag;
    @NotNull
    private final List<PrintTemplateConfig> printTemplateConfigs;
    @NotNull
    private final TemplateDescription templateDescription;

    public PrintConfigEntity(boolean z, boolean z2, boolean z3, @NotNull List<PrintTemplateConfig> printTemplateConfigs, @NotNull TemplateDescription templateDescription) {
        Intrinsics.checkNotNullParameter(printTemplateConfigs, "printTemplateConfigs");
        Intrinsics.checkNotNullParameter(templateDescription, "templateDescription");
        this.printTag = z;
        this.printAnswer = z2;
        this.printAnswerArea = z3;
        this.printTemplateConfigs = printTemplateConfigs;
        this.templateDescription = templateDescription;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ PrintConfigEntity copy$default(PrintConfigEntity printConfigEntity, boolean z, boolean z2, boolean z3, List list, TemplateDescription templateDescription, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            z = printConfigEntity.printTag;
        }
        if ((i2 & 2) != 0) {
            z2 = printConfigEntity.printAnswer;
        }
        if ((i2 & 4) != 0) {
            z3 = printConfigEntity.printAnswerArea;
        }
        if ((i2 & 8) != 0) {
            list = printConfigEntity.printTemplateConfigs;
        }
        if ((i2 & 16) != 0) {
            templateDescription = printConfigEntity.templateDescription;
        }
        return printConfigEntity.copy(z, z2, z3, list, templateDescription);
    }

    public final boolean component1() {
        return this.printTag;
    }

    public final boolean component2() {
        return this.printAnswer;
    }

    public final boolean component3() {
        return this.printAnswerArea;
    }

    @NotNull
    public final List<PrintTemplateConfig> component4() {
        return this.printTemplateConfigs;
    }

    @NotNull
    public final TemplateDescription component5() {
        return this.templateDescription;
    }

    @NotNull
    public final PrintConfigEntity copy(boolean z, boolean z2, boolean z3, @NotNull List<PrintTemplateConfig> printTemplateConfigs, @NotNull TemplateDescription templateDescription) {
        Intrinsics.checkNotNullParameter(printTemplateConfigs, "printTemplateConfigs");
        Intrinsics.checkNotNullParameter(templateDescription, "templateDescription");
        return new PrintConfigEntity(z, z2, z3, printTemplateConfigs, templateDescription);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof PrintConfigEntity)) {
            return false;
        }
        PrintConfigEntity printConfigEntity = (PrintConfigEntity) obj;
        return this.printTag == printConfigEntity.printTag && this.printAnswer == printConfigEntity.printAnswer && this.printAnswerArea == printConfigEntity.printAnswerArea && Intrinsics.areEqual(this.printTemplateConfigs, printConfigEntity.printTemplateConfigs) && Intrinsics.areEqual(this.templateDescription, printConfigEntity.templateDescription);
    }

    public final boolean getPrintAnswer() {
        return this.printAnswer;
    }

    public final boolean getPrintAnswerArea() {
        return this.printAnswerArea;
    }

    public final boolean getPrintTag() {
        return this.printTag;
    }

    @NotNull
    public final List<PrintTemplateConfig> getPrintTemplateConfigs() {
        return this.printTemplateConfigs;
    }

    @NotNull
    public final TemplateDescription getTemplateDescription() {
        return this.templateDescription;
    }

    public int hashCode() {
        boolean z = this.printTag;
        int i2 = 1;
        if (z) {
            z = true;
        }
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        int i5 = z ? 1 : 0;
        int i6 = i3 * 31;
        boolean z2 = this.printAnswer;
        if (z2) {
            z2 = true;
        }
        int i7 = z2 ? 1 : 0;
        int i8 = z2 ? 1 : 0;
        int i9 = z2 ? 1 : 0;
        int i10 = (i6 + i7) * 31;
        boolean z3 = this.printAnswerArea;
        if (!z3) {
            i2 = z3 ? 1 : 0;
        }
        return ((((i10 + i2) * 31) + this.printTemplateConfigs.hashCode()) * 31) + this.templateDescription.hashCode();
    }

    @NotNull
    public String toString() {
        return "PrintConfigEntity(printTag=" + this.printTag + ", printAnswer=" + this.printAnswer + ", printAnswerArea=" + this.printAnswerArea + ", printTemplateConfigs=" + this.printTemplateConfigs + ", templateDescription=" + this.templateDescription + ')';
    }
}